-
Notifications
You must be signed in to change notification settings - Fork 199
feat: add CometAPI integration with CometAPIChatGenerator class and configuration #2345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…Embedder and GoogleAIDocumentEmbedder
…entEmbedder and GoogleAITextEmbedder tests
…der to use private attributes for initialization
…document embedder and tests
…der and GoogleGenAITextEmbedder
Google genai embedders async runs
…IDocumentEmbedder
…atch_async method
|
Hi @sjrl, just checking if you or @TensorNull can give a review to the changes requested. So I can fix things if required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Thank you, @TensorNull! I’d also like to give a special thanks to @sjrl, who was the first person I connected with when I submitted my very first open-source contribution — the text and document embedder integration for Google GenAI. Since then, I’ve received continuous support from all of you. I’m truly grateful to be part of such a welcoming community that helps new contributors like me. I look forward to contributing to Haystack in the future and staying in touch with you all. Thank you again for your constant support and guidance! |
|
Hi @sjrl, just checking if we can merge this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you still need to address this?
Update: we should keep README consistent with other ones (so a lot more minimal).
The current README should be instead placed as a comet-api.md file in that folder, with links / examples.
...ons/cometapi/src/haystack_integrations/components/generators/cometapi/chat/chat_generator.py
Show resolved
Hide resolved
1. enforcing keyword arguments for all init params 2. updated workflow
|
@sjrl @mpangrazzi I have done the changes ✅ |
Related Issues
Proposed Changes
Added a new
CometAPIChatGeneratorclass that extendsOpenAIChatGeneratorto support the Comet API as a backend for chat generation.api_base_urlto point tohttps://api.cometapi.com/v1.COMET_API_KEYenvironment variable (usingSecret.from_env_var).OpenAIChatGenerator.gpt-4o-mini.This provides a seamless way to use CometAPI as a drop-in replacement for OpenAI within Haystack.
How did you test it?
CometAPIChatGeneratorwith and without explicit parameters.OpenAIChatGenerator.api_base_url=https://api.cometapi.com/v1).COMET_API_KEY).Notes for the reviewer
CometAPIChatGeneratorclass.OpenAIChatGeneratorlogic, only customizingapi_base_urland defaults.Checklist
feat:in this case)